//后台学科管理路由
'use strict';
//添加、列表、修改、删除、批量删除等url地址
const express = require('express');
const path = require('path');
//使用express的router方法
const subjectRouter = express.Router();  //定义班级路由 
const subjectCtr = require('./../../controllers/subjectController.js')
subjectRouter.get('/subject_add',subjectCtr.subjectAdd);
subjectRouter.get('/subject_list',subjectCtr.subjectList);
subjectRouter.post('/subject_add',subjectCtr.subjectAddData);
subjectRouter.get('/subject_delete/:id',subjectCtr.subjectDelete);
subjectRouter.post('/subject_deleteAll',subjectCtr.subject_deleteAll)
subjectRouter.get('/subject_edit/:id',subjectCtr.subjectEdit);	// 显示添加学生页面

subjectRouter.post('/subject_edit/:id',subjectCtr.subjectEditData);	// 添加学生操作
// subject_deleteAll

module.exports = subjectRouter;